export class userextract {
  id?: number;
  name = '';
  uid = ''
  realName = ''
  nickName = ''
  extractType = ''
  bankCode = ''
  bankAddress = ''
  alipayCode = ''
  extractPrice = ''
  mark = ''
  balance = ''
  failMsg = ''
  status?: number
  wechat = ''

  failTime = ''
  bankName = ''
  qrcodeUrl = ''
  constructor(data?: userextract) {
    data && this.setProps(data);
  }

  setProps(data: userextract) {
    (Object.keys(this) as Array<keyof Iuserextract>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Iuserextract = Omit<userextract, 'setProps'>